    <extend name="base"/>
    <block name="main">
		<ul class="nav nav-pills nav-justified nav-tab">
		  <li><a href="{:U('Admin/Index/setting?op=qiniu')}">第三方</a></li>
		  <li><a href="{:U('Admin/Index/setting?op=vip')}">vip</a></li>
		  <li><a href="{:U('Admin/Index/setting?op=notice')}">公告</a></li>
		  <li><a href="{:U('Admin/Index/setting?op=lunbo')}">轮播</a></li>
		 <li class="active"><a href="{:U('Admin/Index/setting?op=ad')}">广告</a></li> 
		</ul>
	<form action="{:U('Admin/Index/setting?op=noticehome')}" method="post">

<div class="panel panel-default"> 
   <div class="panel-heading">设置<button type="submit" class="btn btn-primary">提交</button></div> 
   <div class="panel-body"> 
    <div class="form-group"> 
     <label class="col-xs-12 col-sm-3 col-md-2 control-label">首页公告文字内容</label> 
     <div class="col-sm-9 col-xs-12"> 
      <input type="text" value="{$homenotice}" name="noticemessage" class="form-control"> 
      <div class="help-block"></div> 
     </div> 
    </div> 
   </div> 
  </div>
  		</form>
<form action="{:U('Admin/Index/setting')}&op=order" method="post"> 
   <div class="panel panel-default"> 
    <div class="panel-body table-responsive"> 
     <table class="table table-hover"> 
      <thead class="navbar-inner"> 
       <tr> 
        <th style="width:30px;">ID</th> 
        <th style="width:80px">显示顺序</th> 
        <th>广告位图片</th> 
        <th>广告文字</th> 
        <th>广告头像</th> 
        <th>作者昵称</th>
        <th>状态</th>  
        <th>设置</th> 
       </tr> 
      </thead> 
      <tbody> 
      <volist name="datalist" id="dataitem">
      <tr>  
      	<input type="hidden" name="adid[]" value="{$dataitem['id']}"/>
        <td>{$dataitem['id']}</td> 
        <td> <input type="text" class="form-control" name="adorder[]" value="{$dataitem['adorder']}"> </td> 
		<td><img src="{$dataitem['imgurl']}" style="width:100px;height:200px"/></td>
        <td>{$dataitem['admessage']}</td> 
        <td><img src="{$dataitem['writerimgurl']}" style="width:50px;height:50px;"/></td> 
        <td>{$dataitem['writer']}</td>

        <td> <if condition="$dataitem['status'] eq 1"><span class="label label-success">显示</span><else /><span class="label label-default">禁用</span></if></td> 
        <td style="text-align:center;"> <a href="{:U('Admin/Index/setting?op=adupdate')}&id={$dataitem['id']}" class="btn btn-default btn-sm" title="修改"><i class="glyphicon glyphicon-cog"></i></a> <a href="{:U('Admin/Index/setting?op=addelete')}&id={$dataitem['id']}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此广告?')" title="删除"><i class="glyphicon glyphicon-remove"></i></a> </td> 
       </tr>
       </volist>
        <tr><td colspan="8" style="text-align:left;"> <a class="btn btn-default" href="{:U('Admin/Index/setting?op=adadd')}"><i class="glyphicon glyphicon-plus"></i> 添加广告</a> <input type="hidden" name="token" value="bd06da03"><input name="submit" type="submit" class="btn btn-primary" value="提交批量排序"></td></tr> 

      </tbody> 
     </table> 
    </div> 
   </div> 
  </form>
    </block>